<?php
$tdatatbl_tin_tuc=array();
	$tdatatbl_tin_tuc[".NumberOfChars"]=80; 
	$tdatatbl_tin_tuc[".ShortName"]="tbl_tin_tuc";
	$tdatatbl_tin_tuc[".OwnerID"]="";
	$tdatatbl_tin_tuc[".OriginalTable"]="tbl_tin_tuc";


	
//	field labels
$fieldLabelstbl_tin_tuc = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_tin_tuc["English"]=array();
	$fieldToolTipstbl_tin_tuc["English"]=array();
	$fieldLabelstbl_tin_tuc["English"]["id"] = "Id";
	$fieldToolTipstbl_tin_tuc["English"]["id"] = "";
	$fieldLabelstbl_tin_tuc["English"]["tieu_de_tin_tuc_vn"] = "Tieu De Tin Tuc Vn";
	$fieldToolTipstbl_tin_tuc["English"]["tieu_de_tin_tuc_vn"] = "";
	$fieldLabelstbl_tin_tuc["English"]["tieu_de_tin_tuc_en"] = "Tieu De Tin Tuc En";
	$fieldToolTipstbl_tin_tuc["English"]["tieu_de_tin_tuc_en"] = "";
	$fieldLabelstbl_tin_tuc["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_tin_tuc["English"]["hinh_anh"] = "";
	$fieldLabelstbl_tin_tuc["English"]["mo_ta_ngan_gon_vn"] = "Mo Ta Ngan Gon Vn";
	$fieldToolTipstbl_tin_tuc["English"]["mo_ta_ngan_gon_vn"] = "";
	$fieldLabelstbl_tin_tuc["English"]["mo_ta_ngan_gon_en"] = "Mo Ta Ngan Gon En";
	$fieldToolTipstbl_tin_tuc["English"]["mo_ta_ngan_gon_en"] = "";
	$fieldLabelstbl_tin_tuc["English"]["mo_ta_chi_tiet_vn"] = "Mo Ta Chi Tiet Vn";
	$fieldToolTipstbl_tin_tuc["English"]["mo_ta_chi_tiet_vn"] = "";
	$fieldLabelstbl_tin_tuc["English"]["mo_ta_chi_tiet_en"] = "Mo Ta Chi Tiet En";
	$fieldToolTipstbl_tin_tuc["English"]["mo_ta_chi_tiet_en"] = "";
	$fieldLabelstbl_tin_tuc["English"]["hien_len_trang_chu"] = "Hien Len Trang Chu";
	$fieldToolTipstbl_tin_tuc["English"]["hien_len_trang_chu"] = "";
	if (count($fieldToolTipstbl_tin_tuc["English"])){
		$tdatatbl_tin_tuc[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_tin_tuc[".NCSearch"]=true;

	

$tdatatbl_tin_tuc[".shortTableName"] = "tbl_tin_tuc";
$tdatatbl_tin_tuc[".nSecOptions"] = 0;
$tdatatbl_tin_tuc[".recsPerRowList"] = 1;	
$tdatatbl_tin_tuc[".tableGroupBy"] = "0";
$tdatatbl_tin_tuc[".mainTableOwnerID"] = "";
$tdatatbl_tin_tuc[".moveNext"] = 1;




$tdatatbl_tin_tuc[".showAddInPopup"] = false;

$tdatatbl_tin_tuc[".showEditInPopup"] = false;

$tdatatbl_tin_tuc[".showViewInPopup"] = false;


$tdatatbl_tin_tuc[".fieldsForRegister"] = array();
	
$tdatatbl_tin_tuc[".listAjax"] = false;

	$tdatatbl_tin_tuc[".audit"] = false;

	$tdatatbl_tin_tuc[".locking"] = false;
	
$tdatatbl_tin_tuc[".listIcons"] = true;
$tdatatbl_tin_tuc[".edit"] = true;
$tdatatbl_tin_tuc[".inlineEdit"] = true;
$tdatatbl_tin_tuc[".view"] = true;

$tdatatbl_tin_tuc[".exportTo"] = true;

$tdatatbl_tin_tuc[".printFriendly"] = true;

$tdatatbl_tin_tuc[".delete"] = true;

$tdatatbl_tin_tuc[".showSimpleSearchOptions"] = false;

$tdatatbl_tin_tuc[".showSearchPanel"] = true;


$tdatatbl_tin_tuc[".isUseAjaxSuggest"] = true;

$tdatatbl_tin_tuc[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_tin_tuc[".addPageEvents"] = false;

$tdatatbl_tin_tuc[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_tin_tuc[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_tin_tuc[".isUseTimeForSearch"] = false;

$tdatatbl_tin_tuc[".isUseiBox"] = false;



$tdatatbl_tin_tuc[".isUseInlineAdd"] = true;

$tdatatbl_tin_tuc[".isUseInlineEdit"] = true;
$tdatatbl_tin_tuc[".isUseInlineJs"] = $tdatatbl_tin_tuc[".isUseInlineAdd"] || $tdatatbl_tin_tuc[".isUseInlineEdit"];

$tdatatbl_tin_tuc[".allSearchFields"] = array();

$tdatatbl_tin_tuc[".globSearchFields"][] = "tieu_de_tin_tuc_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de_tin_tuc_vn", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "tieu_de_tin_tuc_vn";	
}
$tdatatbl_tin_tuc[".globSearchFields"][] = "tieu_de_tin_tuc_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de_tin_tuc_en", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "tieu_de_tin_tuc_en";	
}
$tdatatbl_tin_tuc[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_tin_tuc[".globSearchFields"][] = "mo_ta_ngan_gon_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_vn", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_ngan_gon_vn";	
}
$tdatatbl_tin_tuc[".globSearchFields"][] = "mo_ta_ngan_gon_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_en", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_ngan_gon_en";	
}
$tdatatbl_tin_tuc[".globSearchFields"][] = "hien_len_trang_chu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hien_len_trang_chu", $tdatatbl_tin_tuc[".allSearchFields"]))
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "hien_len_trang_chu";	
}


$tdatatbl_tin_tuc[".googleLikeFields"][] = "id";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "tieu_de_tin_tuc_vn";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "tieu_de_tin_tuc_en";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "mo_ta_ngan_gon_vn";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "mo_ta_ngan_gon_en";
$tdatatbl_tin_tuc[".googleLikeFields"][] = "hien_len_trang_chu";



$tdatatbl_tin_tuc[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "id";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "tieu_de_tin_tuc_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de_tin_tuc_vn", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "tieu_de_tin_tuc_vn";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "tieu_de_tin_tuc_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de_tin_tuc_en", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "tieu_de_tin_tuc_en";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "mo_ta_ngan_gon_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_vn", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_ngan_gon_vn";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "mo_ta_ngan_gon_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon_en", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_ngan_gon_en";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "mo_ta_chi_tiet_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet_vn", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_chi_tiet_vn";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "mo_ta_chi_tiet_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet_en", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "mo_ta_chi_tiet_en";	
}
$tdatatbl_tin_tuc[".advSearchFields"][] = "hien_len_trang_chu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hien_len_trang_chu", $tdatatbl_tin_tuc[".allSearchFields"])) 
{
	$tdatatbl_tin_tuc[".allSearchFields"][] = "hien_len_trang_chu";	
}

$tdatatbl_tin_tuc[".isTableType"] = "list";


	

$tdatatbl_tin_tuc[".isDisplayLoading"] = true;

$tdatatbl_tin_tuc[".isResizeColumns"] = false;





$tdatatbl_tin_tuc[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_tin_tuc[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_tin_tuc[".orderindexes"] = array();

$tdatatbl_tin_tuc[".sqlHead"] = "SELECT id,  tieu_de_tin_tuc_vn,  tieu_de_tin_tuc_en,  hinh_anh,  mo_ta_ngan_gon_vn,  mo_ta_ngan_gon_en,  mo_ta_chi_tiet_vn,  mo_ta_chi_tiet_en,  hien_len_trang_chu";
$tdatatbl_tin_tuc[".sqlFrom"] = "FROM tbl_tin_tuc";
$tdatatbl_tin_tuc[".sqlWhereExpr"] = "";
$tdatatbl_tin_tuc[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_tin_tuc[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_tin_tuc[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_tin_tuc[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				
		
				
		
		
		
			$tdatatbl_tin_tuc["id"]=$fdata;
//	tieu_de_tin_tuc_vn
	$fdata = array();
	$fdata["strName"] = "tieu_de_tin_tuc_vn";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Tieu De Tin Tuc Vn"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieu_de_tin_tuc_vn";
	
		$fdata["FullName"]= "tieu_de_tin_tuc_vn";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["tieu_de_tin_tuc_vn"]=$fdata;
//	tieu_de_tin_tuc_en
	$fdata = array();
	$fdata["strName"] = "tieu_de_tin_tuc_en";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Tieu De Tin Tuc En"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieu_de_tin_tuc_en";
	
		$fdata["FullName"]= "tieu_de_tin_tuc_en";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["tieu_de_tin_tuc_en"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["hinh_anh"]=$fdata;
//	mo_ta_ngan_gon_vn
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon_vn";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Mo Ta Ngan Gon Vn"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_ngan_gon_vn";
	
		$fdata["FullName"]= "mo_ta_ngan_gon_vn";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["mo_ta_ngan_gon_vn"]=$fdata;
//	mo_ta_ngan_gon_en
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon_en";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Mo Ta Ngan Gon En"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_ngan_gon_en";
	
		$fdata["FullName"]= "mo_ta_ngan_gon_en";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["mo_ta_ngan_gon_en"]=$fdata;
//	mo_ta_chi_tiet_vn
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet_vn";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Mo Ta Chi Tiet Vn"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet_vn";
	
		$fdata["FullName"]= "mo_ta_chi_tiet_vn";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 7;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["mo_ta_chi_tiet_vn"]=$fdata;
//	mo_ta_chi_tiet_en
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet_en";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Mo Ta Chi Tiet En"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet_en";
	
		$fdata["FullName"]= "mo_ta_chi_tiet_en";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 8;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["mo_ta_chi_tiet_en"]=$fdata;
//	hien_len_trang_chu
	$fdata = array();
	$fdata["strName"] = "hien_len_trang_chu";
	$fdata["ownerTable"] = "tbl_tin_tuc";
		$fdata["Label"]="Hien Len Trang Chu"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Checkbox";
	$fdata["ViewFormat"]= "Checkbox";
	
		
		
		
		
		
	$fdata["GoodName"]= "hien_len_trang_chu";
	
		$fdata["FullName"]= "hien_len_trang_chu";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_tin_tuc["hien_len_trang_chu"]=$fdata;

	
$tables_data["tbl_tin_tuc"]=&$tdatatbl_tin_tuc;
$field_labels["tbl_tin_tuc"] = &$fieldLabelstbl_tin_tuc;
$fieldToolTips["tbl_tin_tuc"] = &$fieldToolTipstbl_tin_tuc;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_tin_tuc"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_tin_tuc"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto30=array();
$proto30["m_strHead"] = "SELECT";
$proto30["m_strFieldList"] = "id,  tieu_de_tin_tuc_vn,  tieu_de_tin_tuc_en,  hinh_anh,  mo_ta_ngan_gon_vn,  mo_ta_ngan_gon_en,  mo_ta_chi_tiet_vn,  mo_ta_chi_tiet_en,  hien_len_trang_chu";
$proto30["m_strFrom"] = "FROM tbl_tin_tuc";
$proto30["m_strWhere"] = "";
$proto30["m_strOrderBy"] = "";
$proto30["m_strTail"] = "";
$proto31=array();
$proto31["m_sql"] = "";
$proto31["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto31["m_column"]=$obj;
$proto31["m_contained"] = array();
$proto31["m_strCase"] = "";
$proto31["m_havingmode"] = "0";
$proto31["m_inBrackets"] = "0";
$proto31["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto31);

$proto30["m_where"] = $obj;
$proto33=array();
$proto33["m_sql"] = "";
$proto33["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto33["m_column"]=$obj;
$proto33["m_contained"] = array();
$proto33["m_strCase"] = "";
$proto33["m_havingmode"] = "0";
$proto33["m_inBrackets"] = "0";
$proto33["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto33);

$proto30["m_having"] = $obj;
$proto30["m_fieldlist"] = array();
						$proto35=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_tin_tuc"
));

$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "";
$obj = new SQLFieldListItem($proto35);

$proto30["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "tieu_de_tin_tuc_vn",
	"m_strTable" => "tbl_tin_tuc"
));

$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto30["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLField(array(
	"m_strName" => "tieu_de_tin_tuc_en",
	"m_strTable" => "tbl_tin_tuc"
));

$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "";
$obj = new SQLFieldListItem($proto39);

$proto30["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_tin_tuc"
));

$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "";
$obj = new SQLFieldListItem($proto41);

$proto30["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon_vn",
	"m_strTable" => "tbl_tin_tuc"
));

$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "";
$obj = new SQLFieldListItem($proto43);

$proto30["m_fieldlist"][]=$obj;
						$proto45=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon_en",
	"m_strTable" => "tbl_tin_tuc"
));

$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "";
$obj = new SQLFieldListItem($proto45);

$proto30["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet_vn",
	"m_strTable" => "tbl_tin_tuc"
));

$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto30["m_fieldlist"][]=$obj;
						$proto49=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet_en",
	"m_strTable" => "tbl_tin_tuc"
));

$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "";
$obj = new SQLFieldListItem($proto49);

$proto30["m_fieldlist"][]=$obj;
						$proto51=array();
			$obj = new SQLField(array(
	"m_strName" => "hien_len_trang_chu",
	"m_strTable" => "tbl_tin_tuc"
));

$proto51["m_expr"]=$obj;
$proto51["m_alias"] = "";
$obj = new SQLFieldListItem($proto51);

$proto30["m_fieldlist"][]=$obj;
$proto30["m_fromlist"] = array();
												$proto53=array();
$proto53["m_link"] = "SQLL_MAIN";
			$proto54=array();
$proto54["m_strName"] = "tbl_tin_tuc";
$proto54["m_columns"] = array();
$proto54["m_columns"][] = "id";
$proto54["m_columns"][] = "tieu_de_tin_tuc_vn";
$proto54["m_columns"][] = "tieu_de_tin_tuc_en";
$proto54["m_columns"][] = "hinh_anh";
$proto54["m_columns"][] = "mo_ta_ngan_gon_vn";
$proto54["m_columns"][] = "mo_ta_ngan_gon_en";
$proto54["m_columns"][] = "mo_ta_chi_tiet_vn";
$proto54["m_columns"][] = "mo_ta_chi_tiet_en";
$proto54["m_columns"][] = "hien_len_trang_chu";
$obj = new SQLTable($proto54);

$proto53["m_table"] = $obj;
$proto53["m_alias"] = "";
$proto55=array();
$proto55["m_sql"] = "";
$proto55["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto55["m_column"]=$obj;
$proto55["m_contained"] = array();
$proto55["m_strCase"] = "";
$proto55["m_havingmode"] = "0";
$proto55["m_inBrackets"] = "0";
$proto55["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto55);

$proto53["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto53);

$proto30["m_fromlist"][]=$obj;
$proto30["m_groupby"] = array();
$proto30["m_orderby"] = array();
$obj = new SQLQuery($proto30);

$queryData_tbl_tin_tuc = $obj;
$tdatatbl_tin_tuc[".sqlquery"] = $queryData_tbl_tin_tuc;

$tableEvents["tbl_tin_tuc"] = new eventsBase;

?>
